#include <CommandCopy.h>
Inheritance diagram for CommandCopy:

Public Member Functions | |
| CommandCopy (OSGWindows *osgwind) | |
| CommandCopy (OSGWindows *osgwind, TraffEduObject *obj) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| TraffEduObject * | obj_ |
| int | rightCLK |
Definition at line 7 of file CommandCopy.h.
|
|
A constructor. Initializes osgwind_ and rightCLK variables. It is called if the copy operation is done from the menubar.
Definition at line 2 of file CommandCopy.cpp. |
|
||||||||||||
|
A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the copy operation is done from the menubar.
Definition at line 8 of file CommandCopy.cpp. |
|
|
do the copy operation.
Implements Command. Definition at line 16 of file CommandCopy.cpp. References OSGWindows::clearCopiedObjects(), obj_, osgwind_, rightCLK, and OSGWindows::setCopiedObjects(). Referenced by OSGWindows::addCommandCopy(). |
|
|
undo the copy operation.
Implements Command. Definition at line 28 of file CommandCopy.cpp. |
|
|
a private variable. It is used to hold the copied object. Definition at line 21 of file CommandCopy.h. Referenced by CommandCopy(), and execute(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 15 of file CommandCopy.h. Referenced by CommandCopy(), and execute(). |
|
|
a private variable. It shows if the CommandCopy is called from the RightClickMenu or not. Definition at line 27 of file CommandCopy.h. Referenced by CommandCopy(), and execute(). |
1.4.6-NO